<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
</head>
<body>
    <script>
        let student = {
            name: "翠花",
            age: 18,
            gender: "女",
            hobby: ["跳舞", "唱歌", "rap"],
            friends: [
                { name: "小明", age: 20 }, { name: "小红", age: 19 },
                { name: "小亮", age: 21 }, { name: "小丽", age: 22 },
                { name: "小李", age: 23 }, { name: "小王", age: 24 }
            ]
        };
        // 输出学生信息
        console.log(`我的姓名是:${student.name}`);
        console.log(`我的年龄是:${student.age}`);
        console.log(`我的性别是:${student.gender}`);
        console.log(`我最爱的爱好是: ${student.hobby[0]}`);
        console.log(`我的其他爱好是: ${student.hobby.slice(1)}`);
        const bestFriend = student.friends.find(friend => friend.name === "小明");
        console.log(`我最好朋友的信息:name:'${bestFriend.name}': age: ${bestFriend.age}`);
        const friendWithAge22 = student.friends.find(friend => friend.age === 22);
        console.log(`我有一个 22 岁的朋友, 名字叫${friendWithAge22.name}`);
    </script>
</body>
</html>